package com.project.controller.send;

import com.project.bean.OrderBean;
import com.project.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("send")
public class SendController {
    @Autowired
    private IOrderService orderService;

    @RequestMapping("findBySend")
    public List<OrderBean> findBySend(){
        return orderService.findBySend();
    }
}
